// Copyright © SixtyFPS GmbH <info@slint-ui.com>
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-commercial

import { StandardButton, Button, GridBox } from "std-widgets.slint";

TestCase := Dialog {
    Rectangle {
        background: red;
        preferred-width: 600px;
        preferred-height: 600px;
    }

    StandardButton { kind: help; }
    StandardButton { kind: ok; }
    StandardButton { kind: cancel; }
    StandardButton { kind: apply; }
    StandardButton { kind: reset; }
    StandardButton { kind: yes; }
    Button {
        text: "Action";
        dialog-button-role: action;
    }
}

/*
```rust
let instance = TestCase::new().unwrap();
instance.on_help_clicked(|| { dbg!() });
instance.on_cancel_clicked(|| { dbg!() });
```

```cpp
auto handle = TestCase::create();
const TestCase &instance = *handle;
instance.on_help_clicked([] { });
instance.on_cancel_clicked([] { });
```

*/
